<template>
  <div class="about">
    <HelloWorld>
      <span>ssssss{{ dataVar }}</span>
    </HelloWorld>
    <!-- <h1>This is a test page {{ dataVar }}</h1> -->
  </div>
</template>

<script>
/* eslint-disable */

import HelloWorld from "../components/HelloWorld";

export default {
  name: "Test",
  components: { HelloWorld },
  data() {
    return {
      dataVar: 1
    };
  },
  beforeCreate() {
    this.compName = "single";
    console.log(`--${this.compName}--beforeCreate`);
  },
  created() {
    console.log(`--${this.compName}--created`);
  },
  beforeMount() {
    console.log(`--${this.compName}--beforeMount`);
  },
  mounted() {
    console.log(`--${this.compName}--mounted`);
  },
  beforeUpdate() {
    console.log(`--${this.compName}--beforeUpdate`);
  },
  updated() {
    console.log(`--${this.compName}--updated`);
  },
  beforeDestroy() {
    console.log(`--${this.compName}--beforeDestroy`);
  },
  destroyed() {
    console.log(`--${this.compName}--destroyed`);
  },
  methods: {
    handleDestroy() {
      this.$destroy();
    }
  }
};
</script>
